package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@Accessors ( chain = true )
@TableName ( "erp_file_info" )
@ApiModel ( value = "文件表", description = "文件表" )
public class FileEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "文件名称，保持源文件名称" )
    @TableField ( "file_name" )
    private String fileName;

    @ApiModelProperty ( "文件唯一性名称，UUID生成" )
    @TableField ( "file_only_name" )
    private String fileOnlyName;

    @ApiModelProperty ( "文件URL" )
    @TableField ( "file_url" )
    private String fileUrl;

    @ApiModelProperty ( "文件保持磁盘绝对路径" )
    @TableField ( "file_disk" )
    private String fileDisk;

    @ApiModelProperty ( "业务Id" )
    @TableField ( "relation_id" )
    private String relationId;

    @ApiModelProperty ( "文件类型;1:用户签名照;2:客户附件;3:客户联系人附件;4:标书附件;5:投标结果附件;6:保证金附件;7:工商业勘测附件;8:户用勘测附件;9:初步报价附件;10:合同附件;11:盖章管理附件;12:收款计划附件;13:开票管理附件;14:报价管理附件;15:订单管理附件;16:单据附件;17:供应商附件;18:产品附件;19:出入库附件;20:收付款附件;21:报销附件;22:借款附件;23:汇票附件;24:办公用品附件;25:申领办公用品附件;26:公告通知附件;27:劳动合同附件;28:员工证书附件;29:员工档案附件;30:考勤申请流程附件;31:项目附件;32:项目计划附件;33:材项目预算附件;34:采购申请附件;35:进度附件;36:任务附件;37:施工计划附件;38:施工汇报附件;39:项目人员劳动合同附件;40:项目人员保险附件;41:项目人员证件附件;42:项目考勤报工附件;43项目奖罚附件;44:项目工资付款附件;45:项目机具附件;46:项目巡检记录附件;47:项目整改记录附件;48:项目危大工程附件;49:项目开票记录附件;50:项目收付款记录附件;51:项目退款记录附件;52:项目其他收入/支出附件;53:项目文档附件;54:项目工程造价附件;55:项目结算附件;56:项目售后附件;57:询价单附件;58:报价单附件;" )
    @TableField ( "type" )
    private Integer type;

    @ApiModelProperty ( "文件格式类型；" +
            "1：图片\n" +
            "2：txt文本\n" +
            "3：pdf文本\n" +
            "4：word文本\n" +
            "5：excel文本\n" +
            "6：ppt文本" )
    @TableField ( "file_type" )
    private Integer fileType;

    @TableField ( "file_size" )
    private String fileSize;

    @ApiModelProperty ( "创建时间" )
    @TableField ( "create_time" )
    private Date createTime;

    @ApiModelProperty ( "更新时间" )
    @TableField ( "change_time" )
    private Date changeTime;

    @TableField ( "is_used" )
    private Integer isUsed;


}
